{extends file="../home.html"}
{block name="title"}{$head_title}{/block}
{block name="css"}
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/front/front_css/refresh_load.css?version={$version}"/>
	<style type="text/css">
		body{
			padding-top:2.2rem;
		}
		.home_news{
			background:#fff;
		}
		.home_news li.news-list{
		   	padding-top: .75rem;
    		border-top: .05rem solid #ddd;
    		border-top:0;
    		border-bottom:1px solid #ddd;
		}
		#load_wrapper{
			top:2.2rem;
			height:31.15rem;
		}
	</style>
{/block}
{block name="content"}
{include file="../common_header.html"}
	<div id="load_wrapper">
		<div id="scroller">
			<div id="pullDown">
			    <span class="pullDownIcon"></span>
			</div>
			<div class="park_box">
				<ul class="clearfix project_type_tab project_type_tab1">
					<li class="fl">
						<div class="type_tab_box clearfix" >
							<p class="fl" id="project_type">类型</p>
							<i class="fl icon icon_screen_default3x icon_up3x"></i>
						</div>
					</li>
					<li class="fl">
						<div class="type_tab_box clearfix">
							<p class="fl" id="territory">地域</p>
							<i class="fl icon icon_screen_default3x icon_up3x"></i>
						</div>
					</li>
				</ul>
				<!--<div class="project_bg" style="display:none;"></div>-->
				<div class="project_type_list">
					<dl class="project_tab_menu project_type" style="display:none;">
						<dd class="clearfix active " data-project_type_id='0'>
							<p class="fl">全部</p>
							<i class="fr icon icon_sele3x"></i>
						</dd>
						{foreach from = $project_type_list item=type}
						<dd class="clearfix" data-project_type_id = "{$type.type_id}">
							<p class="fl">{$type.type_name}</p>
							<i class="fr icon icon_sele3x"></i>
						</dd>
						{/foreach}
					</dl>
					<dl class="project_tab_menu city_id" style="display:none;">
						<dd class="clearfix" data-city_id='0'>
							<p class="fl">全部</p>
							<i class="fr icon icon_sele3x"></i>
						</dd>
						{foreach from =$city_list item = city}
						<dd class="clearfix {if $city_id == $city.city_id}active{/if}" data-city_id = "{$city.city_id}">
							<p class="fl" >{$city.city_name}</p>
							<i class="fr icon icon_sele3x"></i>
						</dd>
						{/foreach}
					</dl>
				</div>

				<ul class="home_news" id="news_list">
					{foreach from=$project_list item=this}
			        <li class="news-list">
			            <a href="/FrontService/get_project_detail/id/{$this.project_report_id}" class="clearfix">
			                <div class="cont_time fl">
			                    <p>{$this.project_report_name}</p>
			                    <span>{date('Y-m-d',$this.addtime)}</span>
			                </div>
			                <img src="{$this.pic}" alt="" class="fr" />
			            </a>
			        </li>
					{/foreach}
			    </ul>
			    <div id="pullUp">
					<span class="pullUpIcon"></span><span class="pullUpLabel">上拉加载...</span>
				</div>
			</div>
		</div>
	</div>
	<div class="city_list_bg" style="display:none;"></div>
{/block}
{block name="js"}
<script>

    $("#territory").html($(".city_id").children(".active").children("p").html());
    $("#project_type").html($(".project_type").children(".active").children("p").html());

    $(".city_id dd").on("click",function(){
        var html = ($(this).children("p").html());
        $("#territory").html(html);
    });
    $(".project_type dd").on("click",function(){
        var html = ($(this).children("p").html());
        $("#project_type").html(html);
    });

	$(".back-word").on("click",function()
	{
		history.go(-1);
		//window.location='/FrontIndex/home_index';
	});
    var project_type_id = 0;
    var city_id = 0;
	var total={$total};
	var firstRow={$firstRow};
</script>
{literal}
	<script type="text/javascript" src="__PUBLIC__/Js/front/iscroll.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Js/front/front_js/iscroll_tab.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Js/front/front_js/get_project_list.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Js/front/front_js/project_report_circle.js"></script>
{/literal}
{/block}